home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 4 / Macwelt DVD 4.cdr / Entwickler / Mac-OS X / Pantomime / Source / Sendmail.m < prev    next >
MacBinary  |  2002-08-08  |  2.5 KB  |  [□□□□/□□□□]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Ultima 6 (music/ultima6) ext Supported
1% dexvert PC-98 Music (music/pc98Music) ext Unsupported
1% dexvert Amiga E Module (other/amigaEModule) ext Unsupported
1% dexvert ECX module (other/ecxModule) ext Unsupported
1% dexvert Maple Common Binary (other/mapleCommonBinary) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Aug 8 17:19:35 2002, modified Thu Aug 8 17:19:35 2002, 1985 bytes "Sendmail.m" , at 0x841 286 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default
100% librempegprobeID NGC (Nintendo DSP Standard) (ngcdspstd) default (weak)


id metadata
keyvalue
macFileType[□□□□]
macFileCreator[□□□□]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 65 6e 64 6d 61 | 69 6c 2e 6d 00 00 00 00 |..Sendma|il.m....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 01 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 07 c1 00 | 00 01 1e b9 78 90 e7 b9 |........|....x...|
|00000060| 78 90 e7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |x.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 68 88 00 00 |........|....h...|
|00000080| 2f 2a 0a 2a 2a 20 20 53 | 65 6e 64 6d 61 69 6c 2e |/*.** S|endmail.|
|00000090| 6d 0a 2a 2a 0a 2a 2a 20 | 20 43 6f 70 79 72 69 67 |m.**.** | Copyrig|
|000000a0| 68 74 20 28 63 29 20 32 | 30 30 31 2c 20 32 30 30 |ht (c) 2|001, 200|
|000000b0| 32 0a 2a 2a 0a 2a 2a 20 | 20 41 75 74 68 6f 72 3a |2.**.** | Author:|
|000000c0| 20 4c 75 64 6f 76 69 63 | 20 4d 61 72 63 6f 74 74 | Ludovic| Marcott|
|000000d0| 65 20 3c 6c 75 64 6f 76 | 69 63 40 53 6f 70 68 6f |e <ludov|ic@Sopho|
|000000e0| 73 2e 63 61 3e 0a 2a 2a | 0a 2a 2a 20 20 54 68 69 |s.ca>.**|.** Thi|
|000000f0| 73 20 6c 69 62 72 61 72 | 79 20 69 73 20 66 72 65 |s librar|y is fre|
|00000100| 65 20 73 6f 66 74 77 61 | 72 65 3b 20 79 6f 75 20 |e softwa|re; you |
|00000110| 63 61 6e 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |can redi|stribute|
|00000120| 20 69 74 20 61 6e 64 2f | 6f 72 0a 2a 2a 20 20 6d | it and/|or.** m|
|00000130| 6f 64 69 66 79 20 69 74 | 20 75 6e 64 65 72 20 74 |odify it| under t|
|00000140| 68 65 20 74 65 72 6d 73 | 20 6f 66 20 74 68 65 20 |he terms| of the |
|00000150| 47 4e 55 20 4c 65 73 73 | 65 72 20 47 65 6e 65 72 |GNU Less|er Gener|
|00000160| 61 6c 20 50 75 62 6c 69 | 63 0a 2a 2a 20 20 4c 69 |al Publi|c.** Li|
|00000170| 63 65 6e 73 65 20 61 73 | 20 70 75 62 6c 69 73 68 |cense as| publish|
|00000180| 65 64 20 62 79 20 74 68 | 65 20 46 72 65 65 20 53 |ed by th|e Free S|
|00000190| 6f 66 74 77 61 72 65 20 | 46 6f 75 6e 64 61 74 69 |oftware |Foundati|
|000001a0| 6f 6e 3b 20 65 69 74 68 | 65 72 0a 2a 2a 20 20 76 |on; eith|er.** v|
|000001b0| 65 72 73 69 6f 6e 20 32 | 2e 31 20 6f 66 20 74 68 |ersion 2|.1 of th|
|000001c0| 65 20 4c 69 63 65 6e 73 | 65 2c 20 6f 72 20 28 61 |e Licens|e, or (a|
|000001d0| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 29 20 61 |t your o|ption) a|
|000001e0| 6e 79 20 6c 61 74 65 72 | 20 76 65 72 73 69 6f 6e |ny later| version|
|000001f0| 2e 0a 2a 2a 20 20 0a 2a | 2a 20 20 54 68 69 73 20 |..** .*|* This |
|00000200| 6c 69 62 72 61 72 79 20 | 69 73 20 64 69 73 74 72 |library |is distr|
|00000210| 69 62 75 74 65 64 20 69 | 6e 20 74 68 65 20 68 6f |ibuted i|n the ho|
|00000220| 70 65 20 74 68 61 74 20 | 69 74 20 77 69 6c 6c 20 |pe that |it will |
|00000230| 62 65 20 75 73 65 66 75 | 6c 2c 0a 2a 2a 20 20 62 |be usefu|l,.** b|
|00000240| 75 74 20 57 49 54 48 4f | 55 54 20 41 4e 59 20 57 |ut WITHO|UT ANY W|
|00000250| 41 52 52 41 4e 54 59 3b | 20 77 69 74 68 6f 75 74 |ARRANTY;| without|
|00000260| 20 65 76 65 6e 20 74 68 | 65 20 69 6d 70 6c 69 65 | even th|e implie|
|00000270| 64 20 77 61 72 72 61 6e | 74 79 20 6f 66 0a 2a 2a |d warran|ty of.**|
|00000280| 20 20 4d 45 52 43 48 41 | 4e 54 41 42 49 4c 49 54 | MERCHA|NTABILIT|
|00000290| 59 20 6f 72 20 46 49 54 | 4e 45 53 53 20 46 4f 52 |Y or FIT|NESS FOR|
|000002a0| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|000002b0| 52 50 4f 53 45 2e 20 53 | 65 65 20 74 68 65 20 47 |RPOSE. S|ee the G|
|000002c0| 4e 55 0a 2a 2a 20 20 4c | 65 73 73 65 72 20 47 65 |NU.** L|esser Ge|
|000002d0| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|000002e0| 65 6e 73 65 20 66 6f 72 | 20 6d 6f 72 65 20 64 65 |ense for| more de|
|000002f0| 74 61 69 6c 73 2e 0a 2a | 2a 20 20 0a 2a 2a 20 20 |tails..*|* .** |
|00000300| 59 6f 75 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |You shou|ld have |
|00000310| 72 65 63 65 69 76 65 64 | 20 61 20 63 6f 70 79 20 |received| a copy |
|00000320| 6f 66 20 74 68 65 20 47 | 4e 55 20 4c 65 73 73 65 |of the G|NU Lesse|
|00000330| 72 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |r Genera|l Public|
|00000340| 0a 2a 2a 20 20 4c 69 63 | 65 6e 73 65 20 61 6c 6f |.** Lic|ense alo|
|00000350| 6e 67 20 77 69 74 68 20 | 74 68 69 73 20 6c 69 62 |ng with |this lib|
|00000360| 72 61 72 79 3b 20 69 66 | 20 6e 6f 74 2c 20 77 72 |rary; if| not, wr|
|00000370| 69 74 65 20 74 6f 20 74 | 68 65 20 46 72 65 65 20 |ite to t|he Free |
|00000380| 53 6f 66 74 77 61 72 65 | 0a 2a 2a 20 20 46 6f 75 |Software|.** Fou|
|00000390| 6e 64 61 74 69 6f 6e 2c | 20 49 6e 63 2e 2c 20 35 |ndation,| Inc., 5|
|000003a0| 39 20 54 65 6d 70 6c 65 | 20 50 6c 61 63 65 2c 20 |9 Temple| Place, |
|000003b0| 53 75 69 74 65 20 33 33 | 30 2c 20 42 6f 73 74 6f |Suite 33|0, Bosto|
|000003c0| 6e 2c 20 4d 41 20 30 32 | 31 31 31 2d 31 33 30 37 |n, MA 02|111-1307|
|000003d0| 20 55 53 41 0a 2a 2f 0a | 0a 23 69 6d 70 6f 72 74 | USA.*/.|.#import|
|000003e0| 20 3c 50 61 6e 74 6f 6d | 69 6d 65 2f 53 65 6e 64 | <Pantom|ime/Send|
|000003f0| 6d 61 69 6c 2e 68 3e 0a | 0a 23 69 6d 70 6f 72 74 |mail.h>.|.#import|
|00000400| 20 3c 50 61 6e 74 6f 6d | 69 6d 65 2f 43 6f 6e 73 | <Pantom|ime/Cons|
|00000410| 74 61 6e 74 73 2e 68 3e | 0a 0a 40 69 6d 70 6c 65 |tants.h>|..@imple|
|00000420| 6d 65 6e 74 61 74 69 6f | 6e 20 53 65 6e 64 6d 61 |mentatio|n Sendma|
|00000430| 69 6c 0a 0a 2d 20 28 69 | 64 29 20 69 6e 69 74 57 |il..- (i|d) initW|
|00000440| 69 74 68 50 61 74 68 54 | 6f 53 65 6e 64 6d 61 69 |ithPathT|oSendmai|
|00000450| 6c 3a 20 28 4e 53 53 74 | 72 69 6e 67 20 2a 29 20 |l: (NSSt|ring *) |
|00000460| 74 68 65 50 61 74 68 3b | 0a 7b 0a 20 20 73 65 6c |thePath;|.{. sel|
|00000470| 66 20 3d 20 5b 73 75 70 | 65 72 20 69 6e 69 74 5d |f = [sup|er init]|
|00000480| 3b 0a 0a 20 20 5b 73 65 | 6c 66 20 73 65 74 50 61 |;.. [se|lf setPa|
|00000490| 74 68 54 6f 53 65 6e 64 | 6d 61 69 6c 3a 20 74 68 |thToSend|mail: th|
|000004a0| 65 50 61 74 68 5d 3b 0a | 0a 20 20 72 65 74 75 72 |ePath];.|. retur|
|000004b0| 6e 20 73 65 6c 66 3b 0a | 7d 0a 0a 2d 20 28 76 6f |n self;.|}..- (vo|
|000004c0| 69 64 29 20 64 65 61 6c | 6c 6f 63 0a 7b 0a 20 20 |id) deal|loc.{. |
|000004d0| 52 45 4c 45 41 53 45 28 | 70 61 74 68 54 6f 53 65 |RELEASE(|pathToSe|
|000004e0| 6e 64 6d 61 69 6c 29 3b | 0a 0a 20 20 5b 73 75 70 |ndmail);|.. [sup|
|000004f0| 65 72 20 64 65 61 6c 6c | 6f 63 5d 3b 0a 7d 0a 0a |er deall|oc];.}..|
|00000500| 2d 20 28 4e 53 53 74 72 | 69 6e 67 20 2a 29 20 70 |- (NSStr|ing *) p|
|00000510| 61 74 68 54 6f 53 65 6e | 64 6d 61 69 6c 0a 7b 0a |athToSen|dmail.{.|
|00000520| 20 20 72 65 74 75 72 6e | 20 70 61 74 68 54 6f 53 | return| pathToS|
|00000530| 65 6e 64 6d 61 69 6c 3b | 0a 7d 0a 0a 2d 20 28 76 |endmail;|.}..- (v|
|00000540| 6f 69 64 29 20 73 65 74 | 50 61 74 68 54 6f 53 65 |oid) set|PathToSe|
|00000550| 6e 64 6d 61 69 6c 3a 20 | 28 4e 53 53 74 72 69 6e |ndmail: |(NSStrin|
|00000560| 67 20 2a 29 20 74 68 65 | 50 61 74 68 0a 7b 0a 20 |g *) the|Path.{. |
|00000570| 20 52 45 54 41 49 4e 28 | 74 68 65 50 61 74 68 29 | RETAIN(|thePath)|
|00000580| 3b 0a 20 20 52 45 4c 45 | 41 53 45 28 70 61 74 68 |;. RELE|ASE(path|
|00000590| 54 6f 53 65 6e 64 6d 61 | 69 6c 29 3b 0a 20 20 70 |ToSendma|il);. p|
|000005a0| 61 74 68 54 6f 53 65 6e | 64 6d 61 69 6c 20 3d 20 |athToSen|dmail = |
|000005b0| 74 68 65 50 61 74 68 3b | 0a 7d 0a 0a 2d 20 28 42 |thePath;|.}..- (B|
|000005c0| 4f 4f 4c 29 20 73 65 6e | 64 4d 65 73 73 61 67 65 |OOL) sen|dMessage|
|000005d0| 3a 20 28 4d 65 73 73 61 | 67 65 20 2a 29 20 74 68 |: (Messa|ge *) th|
|000005e0| 65 4d 65 73 73 61 67 65 | 0a 7b 0a 20 20 72 65 74 |eMessage|.{. ret|
|000005f0| 75 72 6e 20 5b 73 65 6c | 66 20 73 65 6e 64 4d 65 |urn [sel|f sendMe|
|00000600| 73 73 61 67 65 46 72 6f | 6d 52 61 77 53 6f 75 72 |ssageFro|mRawSour|
|00000610| 63 65 3a 20 5b 74 68 65 | 4d 65 73 73 61 67 65 20 |ce: [the|Message |
|00000620| 64 61 74 61 55 73 69 6e | 67 53 65 6e 64 69 6e 67 |dataUsin|gSending|
|00000630| 4d 6f 64 65 3a 20 53 45 | 4e 44 5f 55 53 49 4e 47 |Mode: SE|ND_USING|
|00000640| 5f 53 45 4e 44 4d 41 49 | 4c 5d 5d 3b 0a 7d 0a 0a |_SENDMAI|L]];.}..|
|00000650| 2d 20 28 42 4f 4f 4c 29 | 20 73 65 6e 64 4d 65 73 |- (BOOL)| sendMes|
|00000660| 73 61 67 65 46 72 6f 6d | 52 61 77 53 6f 75 72 63 |sageFrom|RawSourc|
|00000670| 65 3a 20 28 4e 53 44 61 | 74 61 20 2a 29 20 74 68 |e: (NSDa|ta *) th|
|00000680| 65 44 61 74 61 0a 7b 0a | 20 20 69 66 20 28 5b 73 |eData.{.| if ([s|
|00000690| 65 6c 66 20 70 61 74 68 | 54 6f 53 65 6e 64 6d 61 |elf path|ToSendma|
|000006a0| 69 6c 5d 20 3d 3d 20 6e | 69 6c 29 0a 20 20 20 20 |il] == n|il). |
|000006b0| 7b 0a 20 20 20 20 20 20 | 4e 53 44 65 62 75 67 4c |{. |NSDebugL|
|000006c0| 6f 67 28 40 22 2d 5b 53 | 65 6e 64 6d 61 69 6c 20 |og(@"-[S|endmail |
|000006d0| 73 65 6e 64 4d 65 73 73 | 61 67 65 46 72 6f 6d 52 |sendMess|ageFromR|
|000006e0| 61 77 53 6f 75 72 63 65 | 3a 5d 3a 20 54 68 65 20 |awSource|:]: The |
|000006f0| 6d 61 69 6c 65 72 20 70 | 72 6f 67 72 61 6d 20 77 |mailer p|rogram w|
|00000700| 61 73 20 6e 6f 74 20 73 | 70 65 63 69 66 69 65 64 |as not s|pecified|
|00000710| 22 29 3b 0a 20 20 20 20 | 20 20 72 65 74 75 72 6e |");. | return|
|00000720| 20 4e 4f 3b 0a 20 20 20 | 20 7d 0a 20 20 65 6c 73 | NO;. | }. els|
|00000730| 65 0a 20 20 20 20 7b 0a | 20 20 20 20 20 20 2f 2a |e. {.| /*|
|00000740| 20 54 4f 44 4f 3a 20 55 | 73 65 20 67 6e 75 73 74 | TODO: U|se gnust|
|00000750| 65 70 2d 62 61 73 65 27 | 73 20 4e 53 50 69 70 65 |ep-base'|s NSPipe|
|00000760| 20 77 68 69 63 68 20 69 | 73 20 6d 6f 72 65 20 70 | which i|s more p|
|00000770| 6f 72 74 61 62 6c 65 20 | 2a 2f 0a 20 20 20 20 20 |ortable |*/. |
|00000780| 20 46 49 4c 45 20 2a 73 | 74 72 65 61 6d 3b 0a 20 | FILE *s|tream;. |
|00000790| 20 20 20 20 20 0a 20 20 | 20 20 20 20 73 74 72 65 | . | stre|
|000007a0| 61 6d 20 3d 20 70 6f 70 | 65 6e 20 28 5b 5b 73 65 |am = pop|en ([[se|
|000007b0| 6c 66 20 70 61 74 68 54 | 6f 53 65 6e 64 6d 61 69 |lf pathT|oSendmai|
|000007c0| 6c 5d 20 63 53 74 72 69 | 6e 67 5d 2c 20 22 77 22 |l] cStri|ng], "w"|
|000007d0| 29 3b 0a 20 20 20 20 20 | 20 66 77 72 69 74 65 20 |);. | fwrite |
|000007e0| 28 5b 74 68 65 44 61 74 | 61 20 62 79 74 65 73 5d |([theDat|a bytes]|
|000007f0| 2c 5b 74 68 65 44 61 74 | 61 20 6c 65 6e 67 74 68 |,[theDat|a length|
|00000800| 5d 2c 31 2c 73 74 72 65 | 61 6d 29 3b 0a 20 20 20 |],1,stre|am);. |
|00000810| 20 20 20 70 63 6c 6f 73 | 65 20 28 73 74 72 65 61 | pclos|e (strea|
|00000820| 6d 29 3b 0a 20 20 20 20 | 7d 0a 0a 20 20 72 65 74 |m);. |}.. ret|
|00000830| 75 72 6e 20 59 45 53 3b | 0a 7d 0a 0a 40 65 6e 64 |urn YES;|.}..@end|
|00000840| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000890| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|000008a0| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|000008b0| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+